# coding:utf-8

from flask import Flask
from flask_sqlalchemy import SQLAlchemy


class Application(Flask):
    def __init__(self, import_name):
        super(Application, self).__init__(import_name)
        self.config.from_pyfile('app/config/base_setting.py')

        db.init_app(self)


db = SQLAlchemy()
app = Application(__name__)
